--[[

        monsterhole.lua
        exported by excel2lua.py
        from file:monsterhole.xlsx

--]]

local _data = {
  [1] = {id = 1,type = 1,name = '天池秘境1',desc = '',level = 10,monster_group = '',drop = 1,scene = 2,},
  [2] = {id = 2,type = 1,name = '天池秘境2',desc = '',level = 20,monster_group = '',drop = 2,scene = 3,},
  [3] = {id = 3,type = 1,name = '天池秘境3',desc = '',level = 30,monster_group = '',drop = 3,scene = 4,},
  [4] = {id = 13,type = 5,name = '魔神秘境1',desc = '',level = 10,monster_group = '',drop = 1,scene = 5,},
  [5] = {id = 14,type = 5,name = '魔神秘境2',desc = '',level = 20,monster_group = '',drop = 2,scene = 6,},
  [6] = {id = 15,type = 5,name = '魔神秘境3',desc = '',level = 30,monster_group = '',drop = 3,scene = 7,},
  [7] = {id = 16,type = 5,name = '大荒秘境1',desc = '',level = 10,monster_group = '',drop = 1,scene = 8,},
  [8] = {id = 17,type = 5,name = '大荒秘境2',desc = '',level = 20,monster_group = '',drop = 2,scene = 9,},
  [9] = {id = 18,type = 5,name = '大荒秘境3',desc = '',level = 30,monster_group = '',drop = 3,scene = 9,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [13] = 4,
   [14] = 5,
   [15] = 6,
   [16] = 7,
   [17] = 8,
   [18] = 9,
}

local monsterhole={}

function monsterhole.length() 
   return #_data 
end 

function monsterhole.indexOf(index) 
   return _data[index] 
end 

function monsterhole.get(id) 
  return monsterhole.indexOf(id_to_index[id])
end 

return monsterhole